package v1ch05.objectAnalyzer;

import java.util.ArrayList;

/**
 * 该程序使用反射来监视对象。
 *
 * @author Cay Horstmann
 * @version 1.12 2012-01-26
 */
public class ObjectAnalyzerTest {
	public static void main(String[] args) {
		ArrayList<Integer> squares = new ArrayList<>();
		for (int i = 1; i <= 5; i++)
			squares.add(i * i);
		System.out.println(new ObjectAnalyzer().toString(squares));
	}
}